﻿using System.Collections.Generic;

namespace YiCheap.Core.Domain.Products
{
    public class SpecificationAttributeOption : BaseEntity
    {

        /// <summary>
        /// Gets or sets the specification attribute identifier
        /// </summary>
        public virtual int SpecificationAttributeId { get; set; }

        /// <summary>
        /// Gets or sets the specification attribute
        /// </summary>
        public virtual SpecificationAttribute SpecificationAttribute { get; set; }

        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// Gets or sets the display order
        /// </summary>
        public virtual int DisplayOrder { get; set; }

        private ICollection<ProductVariantSpecificationAttribute> _productSpecificationAttributes;

        /// <summary>
        /// Gets or sets the product specification attribute
        /// </summary>
        public virtual ICollection<ProductVariantSpecificationAttribute> ProductSpecificationAttributes
        {
            get { return _productSpecificationAttributes ?? (_productSpecificationAttributes = new List<ProductVariantSpecificationAttribute>()); }
            protected set { _productSpecificationAttributes = value; }
        }
    }
}